package addon.w3.mdx.com;

import java.io.IOException;

import addon.w3.mdx.MDXCOM;
import addon.w3.mdx.LEDataInputStream;
import addon.w3.mdx.MDXException;

/**
--UVAS
	long	ntvrts;
	UVBS[ntvrts]
 * @author madjk
 *
 */
public class MDXUVASCOM extends MDXCOM {
	int length = -1;
	public MDXUVBSCOM uvbs[];
	
	public String getTag() {
		return "UVAS";
	}
	
	public void _decode(LEDataInputStream ins) throws IOException, MDXException {
		length = ins.readInt();
		uvbs = new MDXUVBSCOM[length];
		for(int i=0;i<uvbs.length;i++) {
			uvbs[i] = new MDXUVBSCOM();
			uvbs[i].decode(ins);
		}
	}
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("TAG : "+getTag());
		sb.append("\n\tILEN : "+length);
		sb.append("\n\tUVBS[] : "+uvbs.length);
		return sb.toString();
	}

	@Override
	public boolean isImplicitTag() {
		// TODO Auto-generated method stub
		return true;
	}
}
